<template>
  <div class="hp-dialog" v-if="isShow">
    <div class="app-dialog" >
      <div class="hintLogoStyle">
        <i class="hintLogo fa fa-2x fa-bell"></i>
      </div>
      <p class="dialog-title">{{title}}</p>
      <p class="dialog-content">{{content}}</p>
      <span class="primary-btn" @click="confirm">确定</span>
    </div>
  </div>

</template>
<script>
export default {
  name: "hp-dialog",
}
</script>
<style scoped>
  .hp-dialog{
    width: 100vw;
    height: 100vh;
    background: rgba(76,76,76,.6);
    position: absolute;
    z-index: 999;
    left: 0;
    right: 0;
    top: 0;
  }
  .app-dialog{
    width: 80vw;
    height: 25vh;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    text-align: center;
  }
  .dialog-title{
    margin-top: 60px;
    color: #333333;
    font-size: 28px;
  }
  .dialog-content{
    margin-top: 0.2rem;
    font-size: 22px;
    color: #7b7b7b;
  }
  .primary-btn{
    width: 300px;
    height: 50px;
    color: #fff;
    background: #3e9efd;
    position: absolute;
    top: 180px;
    left: 50px;
    text-align: center;
    line-height: 1.906666rem;
    border-radius: 50px;
    font-size: 20px;
  }
  .hintLogoStyle{
    position: absolute;
    height: 110px;
    width: 110px;
    background: white;
    left: 145px;
    top: -45px;
    border-radius: 50%;
    z-index: 999999999;
  }
  .hintLogo{
    position: absolute;
    left: 30px;
    top: 30px;
    color: #3e9efd;
  }
</style>
